﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.statistics.InternalProgress" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>学员进度查询</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/Common.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/course.js"></script>
  <style type="text/css">
    #processdatatable{ width:650px; display:table; }
    .p_rows{ width:650px; height:24px; line-height:24px; border-bottom:dashed 1px #ccc; text-align:center; }
    .p_r_t{ float:left; width:120px; }
    .p_r_c{ float:left; width:120px; }
    .p_r_cern{ float:left; width:120px; }
    .p_r_coun{ float:left; width:170px; }
    .p_r_p{ float:left; width:120px; }
    .p_data{ width:35px; }
  </style>
  <script type="text/javascript">
    $(document).ready(
      function() {
        $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
        $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
      }
    );
  </script>
</head>
<body>
  <form id="form1" action="?act=s" method="post">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索条件</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <%--<div class="fl" style="line-height:23px;">班级编号：</div>
        <div class="fl"><input type="text" id="ClassCodeTxt" name="ClassCodeTxt" value="<%=classCode %>" /></div>--%>
        <div class="fl" style="line-height:23px;">学员姓名：</div>
        <div class="fl"><input type="text" id="UserNameTxt" name="UserNameTxt" value="<%=userName %>" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;登录名：</div>
        <div class="fl"><input type="text" id="LoginIDTxt" name="LoginIDTxt" value="<%=loginid %>" /></div>
        <%--<div class="fl" style="line-height:23px;">&nbsp;培训机构：</div>
        <div class="fl">
          <select id="AreaSlt" name="AreaSlt">
            <option value="-1">全部</option>
            <% if (areaList != null && areaList.Count > 0) { %>
              <% foreach (DictAreaModel model in areaList) { %>
            <option value="<%=model.ID %>"><%=model.Name%></option>
              <% } %>
            <% } %>
          </select>
        </div>--%>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">项目组：</div>
        <div class="fl">
          <% if (certificateList != null && certificateList.Count > 0) { %>
          <select id="CertificateSlt" name="CertificateSlt" onchange="GetCourseListWithCourseID(this.value);">
            <option value="-1">请选择项目组</option>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in certificateList) { %>
              <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <select id="CourseSlt" name="CourseSlt">
            <option value="-1">请选择课程</option>
            </select>
          <% } %>
        </div>
      </div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">入职时间：</div>
        <div class="fl"><input id="FromDateTxt" name="FromDateTxt" value="<%=fromDate %>" />&nbsp;至&nbsp;<input id="ToDateTxt" name="ToDateTxt" value="<%=toDate %>" /></div>
        <div class="fl"><input type="image" src="/images/btn/search.gif" style="width:54px; height:23px; margin-left:20px;" /></div>
      </div>
    </div>
    
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>       
        
      <% if (studyList != null && studyList.Count > 0) { %>
        
        <div id="processdatatable">
          <div class="p_rows" style="font-weight:bolder;">
            <div class="p_r_t">用户名</div>
            <div class="p_r_c">姓名</div>
            <div class="p_r_cern">项目组</div>
            <div class="p_r_coun">课程名称</div>
            <div class="p_r_p">学习进度</div>
          </div>            
            
        <% foreach (StudyLogForListModel model in studyList) { %>
            
          <div class="p_rows">
            <div class="p_r_t"><%=model.LoginID%></div>
            <div class="p_r_c"><%=model.UserName%></div>
            <div class="p_r_cern"><%=model.CertificateName%></div>
            <div class="p_r_coun"><%=model.CourseName%></div>
            <div class="p_r_p">
            <% int maxpage = GetCourseWarePageCount(model.CourseID); %>
            <%=GetCurrentPageWithPercent(model.Progress, maxpage)%>/<%=maxpage %>
              <%--<div class="fr p_data">&nbsp;<%=model.Progress %>%</div>
              <div class="fr process_bg" style="margin-top:6px;">
                <div class="process_per" style="width:<%=(model.Progress/2) %>px;"></div>
              </div>--%>
            </div>
          </div>
            
        <% } %>
            
        </div>
      
        <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
          
        <% } else { %>
        <% } %>
    </div>
    
    <% if (act == "s") { %>
    <script type="text/javascript">
      
      <% if (certificateID != -1) { %>
      $("#CertificateSlt").val('<%=certificateID %>');
      GetCourseListWithCourseIDAndSetValue('<%=certificateID %>', '<%=courseID %>');
      <% } %>
    </script>
    <% } %>
  </form>
</body>
</html>
